package com.matt.domain.care;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 大小便记录
 */
@Entity
@Data
@Table(name = "hl_potty_record")
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class HLPottyRecord extends HLCareBaseRecord {

    @Column(columnDefinition = " int  COMMENT '类型, 0. 尿尿,  1.粑粑 , 2 综合'", nullable = false)
    private Integer type = 0;

    @Column(columnDefinition = " varchar(10)  COMMENT '类型'", nullable = false)
    private String typeStr;

    @Column(columnDefinition = " int default 0 COMMENT '类型, 0.正常  1.稀   2.干燥'")
    private Integer pottyState = 0;

    @Column(columnDefinition = " int default 0 COMMENT '类型, 0.正常  1.偏黑  2.偏绿  3.其他'")
    private Integer color = 0;

    @Column(columnDefinition = " bit(1) default 0 COMMENT '有无腹痛腹泻'")
    private Boolean diarrhea = false;

    @Column(columnDefinition = " bit(1) default 0  COMMENT '有无便秘'")
    private Boolean constipation = false;

    @Column(columnDefinition = " bit(1) default 0  COMMENT '小便有无不适'")
    private Boolean uncomfortable = false;

    @Column(columnDefinition = " bit(1) default 0 COMMENT '更换尿布'")
    private Boolean diaper = false;

    @Column(columnDefinition = " bit(1) default 0 COMMENT '红屁屁'")
    private Boolean monkeyAss = false;

    @Column(columnDefinition = " varchar(512)  COMMENT '备注'")
    private String remark;

    @ApiModelProperty("照片")
    @Column(columnDefinition =" varchar(500)  COMMENT '照片' ")
    private String img;


}
